<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Content</title>
</h:head>
<ui:composition template="templatePrincipal.xhtml">
	<ui:define name="header">
		<ui:include src="header.xhtml" />
	</ui:define>
	<ui:define name="centro">
		<h:form styleClass="loginPanelStyle">
			<h:outputStylesheet library="css" name="dinamica.css"/>
			<p:growl id="msgs" showDetail="true" sticky="false" />
			<p:panelGrid columns="2" style="position:absolute;left:36%;top:35%">
				<f:facet name="header">
                    Autenticação do sistema
                	</f:facet>
				<h:outputText value="Usuário : "></h:outputText>
				<p:inputText id="username" value="#{loginController.username}"
					required="true" requiredMessage="O campo username está vazio"
					message="fc">
					<f:validateLength minimum="1" />
				</p:inputText>
				<h:outputText value="Senha : "></h:outputText>
				<p:password id="password" value="#{loginController.password}"
					required="true" requiredMessage="O Campo password está vazio">
					<f:validateLength minimum="1" />
				</p:password>
				<f:facet name="footer">
					<p:commandButton value="Login" update="msgs"
						actionListener="#{loginController.login}" type="submit"
						icon="ui-icon-check" style="margin:0"></p:commandButton>

					<p:commandButton value="Logout" update="msgs"
						actionListener="#{loginController.logout}" type="submit"
						icon="ui-icon-check" style="margin:0"></p:commandButton>

					<p:commandButton value="Login Sem validação"
						action="#{loginController.navegaPrincipal}" ajax="false" />
				</f:facet>
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>